﻿using System.Collections.Generic;
using Fee.Orders.DesignWorkflow;
using Fee.Searchers;
using Microsoft.EntityFrameworkCore;

namespace Fee.Stores.Ef
{
    public class BudgetOrderStore<T> : OrderStoreBase<T, BudgetOrder>, IBudgetOrderStore<T>
        where T : FeeDbContext
    {
        public BudgetOrderStore(T context) : base(context)
        {
        }



        public BudgetOrder GetById(int id)
        {
            var result = GetById(id, query => query.Include(f => f.PlanCosts));
            return result;
            ;
        }
    }
}